const gantt = require('./utils/configGantt')
worker.onMessage(mes => {
  console.log(mes)
    if (gantt[mes.type]) {
        const res = gantt[mes.type](...mes.props)
        worker.postMessage({
            type: mes.type,
            res
        })
    }
})